import { post } from "./http";
const baseURL = "learnDatum/";
// 新增数据
export const getAddLearnDatum = (params) => {
  return post(`${baseURL}add`, params);
};

// 删除数据
export const getDeleteLearnDatum = (params) => {
  return post(`${baseURL}delete`, params);
};

// 根据ID 修改数据
export const getLearnDatumEdit = (params) => {
  return post(`${baseURL}update`, params);
};

// 分页 获取数据
export const getLearnDatumList = (params) => {
  return post(`${baseURL}get/page/list`, params);
};

// 根据ID查询 数据
export const getByIdLearnDatum = (params) => {
  return post(`${baseURL}get/by/id`, params);
};

// 上传 文件
export const uploadImageLearnDatum = (params) => {
  return post(`${baseURL}upload/image`, params);
};

